package com.cipe.cmrs.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;


/**
 * @author Incepio
 *
 */

@MappedSuperclass
public class BaseAuditEntity extends BaseEntity {

	private static final long serialVersionUID = 2289496708923771713L;
	
	@Column(name="updationdate")
	private Date updationDate;
	
	@Column(name="creationdate")
	private Date creationDate;
	
	@ManyToOne
	@JoinColumn(name="updatedby")
	private User updatedBy;
	
	@ManyToOne
	@JoinColumn(name="createdby")
	private User createdBy;

	public Date getUpdationDate() {
		return updationDate;
	}

	public void setUpdationDate(Date updationDate) {
		this.updationDate = updationDate;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public User getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(User updatedBy) {
		this.updatedBy = updatedBy;
	}

	public User getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(User createdBy) {
		this.createdBy = createdBy;
	}

}
